﻿<UserControl xmlns:Extensions="clr-namespace:Sakura.Silverlight.Extensions;assembly=SLExtension"  x:Class="Galnote.Control.PreviewRatio"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    d:DesignHeight="300" d:DesignWidth="400">
    
    <Grid x:Name="LayoutRoot">
		<Grid.RowDefinitions>
			<RowDefinition Height="1*"/>
			<RowDefinition Height="48"/>
		</Grid.RowDefinitions>
		<HyperlinkButton Style="{StaticResource ResourceKey=GenericHBStyle}" HorizontalContentAlignment="Center" VerticalContentAlignment="Bottom">
			<Border BorderBrush="#1FB4B4B4" BorderThickness="1,1,1,0" Padding="2">
				<Button x:Name="PreviewToDownloadButton" Style="{StaticResource ResourceKey=GenericBtnStyle}">
					<Image Source="{Binding Path=Image}" Stretch="Uniform"/>
				</Button>
			</Border>
		</HyperlinkButton>
		<Grid Grid.Row="1">
			<Rectangle Stroke="#FFB4B4B4" StrokeDashArray="5,2"/>
			<StackPanel Orientation="Vertical" Margin="10,2">
				<HyperlinkButton Height="16">
					<TextBlock Style="{StaticResource ResourceKey=GenericWebContentTextStyle}" Text="{Binding Path=Title}"/>
				</HyperlinkButton>
				<HyperlinkButton Height="16" HorizontalAlignment="Left">
					<TextBlock Style="{StaticResource ResourceKey=GenericWebContentTextStyle}" Text="{Binding Path=TimeData}"/>
				</HyperlinkButton>
				<StackPanel Orientation="Horizontal" HorizontalAlignment="Right">
					<TextBlock Text="by" FontWeight="Bold" Margin="3,0,5,0"/>
					<HyperlinkButton Height="16" Width="70">
						<TextBlock Style="{StaticResource ResourceKey=GenericWebContentTextStyle}" Text="{Binding Path=Author}"/>
					</HyperlinkButton>
				</StackPanel>

			</StackPanel>
		</Grid>


	</Grid>
</UserControl>
